import menus from './menus'

export default [
  {
    path: '/',
    component: () => import('@/layout/index.vue'),
    meta: {
      title: '首页',
    },
    children: menus,
  },
  {
    path: '/login',
    component: () => import('@/views/auth/login.vue'),
    meta: {
      title: '登录',
      guest: true, // 未登录允许访问
    },
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/error/404.vue'),
    meta: {
      title: '页面未找到',
      guest: true,
    },
  },
  {
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/recruit/formwork/form',
        component: () => import('@/views/recruit/formwork/form.vue'),
        meta: {
          title: '招聘模板',
        },
      },
    ],
  },
]
